package top.lixunda.ecommerce.server.good.api.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.lixunda.common.validate.annotation.XumMax;
import top.lixunda.common.validate.annotation.XumMin;
import top.lixunda.common.validate.annotation.XumNotNull;

/**
 * 添加SimpleReview的DTO
 *
 * @author Xumda
 * @version time:2020/1/14 15:58
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SimpleReviewInsertDTO {

    @ApiModelProperty("商品id")
    @XumNotNull
    private Integer id;

    @ApiModelProperty(value = "评分")
    @XumNotNull
    @XumMin(0)
    @XumMax(10)
    private Integer score;

    @ApiModelProperty("评论内容")
    @XumNotNull
    private String content;

}
